package com.project.service.impl;

import com.project.bean.ProgressBean;
import com.project.mapper.IProgressMapper;
import com.project.service.IProgressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDate;

@Service
public class progressServiceImpl implements IProgressService {

    @Autowired
    private IProgressMapper mapper;

    @Override
    public void update(Integer progId) {
        mapper.update(progId,LocalDate.now());
    }

    @Override
    public void add(ProgressBean progressBean) {

        mapper.add(progressBean);
    }

    @Override
    public void updateProj(Integer id) {

        mapper.updateProj(id, LocalDate.now());
    }
}
